$padding: 20px;
$mt6: 6px;

body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  background-color: #e5e9ec;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

* {
  padding: 0;
  margin: 0;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}



/* 主体 */
.content {
  color: #ddd;
  background: #000;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.bg {
  padding: 0;
  background: url('../assets/img/pageBg.png') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  padding-bottom: 20px;
}

.module-box {
  display: flex;
  gap: var(--grid-gap, 20px);
  margin: var(--responsive-spacing, 20px);
  flex-wrap: wrap;
}





// capsuleChart胶囊图
.capsuleChart {
  padding: $padding;
}

// capsuleChart水位图 // conicalChart锥形柱图 // scrollChart排名轮播表
.waterChart, .conicalChart, .scrollChart {
  padding: $padding;

  span {
    display: inline-block;
    margin-bottom: $mt6;
  }
}

// 新增图表组件样式
.radarChart, .gaugeChart {
  padding: $padding;
}

// 全局动画效果
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
  }
}

// 图表容器动画
.chart-container {
  animation: fadeInUp 0.6s ease-out;
  
  &:hover {
    animation: pulse 2s infinite;
  }
}

// 数据项悬停效果
.data-item, .info-item, .stat-item {
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  }
}

// 边框盒子发光效果
.dv-border-box-1, .dv-border-box-8, .dv-border-box-12, .dv-border-box-13 {
  animation: glow 3s ease-in-out infinite;
}

// 响应式设计增强
@media (max-width: 1200px) {
  .module-box {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .module-box {
    margin: 10px;
  }
  
  .chart-title {
    font-size: 14px;
  }
  
  .data-value {
    font-size: 18px;
  }
}

// 使用CSS变量的响应式字体
.chart-title {
  font-size: var(--chart-title-font-size, 16px);
}

.data-value {
  font-size: var(--data-font-size, 24px);
}

.info-label, .legend-text {
  font-size: var(--label-font-size, 12px);
}

// 超宽屏适配
@media (min-aspect-ratio: 21/9) {
  .main-grid {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
  }
  
  .module-box {
    gap: 40px;
  }
}

// 竖屏适配
@media (max-aspect-ratio: 3/4) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .left-section, .right-section {
    flex-direction: row;
    gap: 15px;
  }
  
  .chart-container {
    flex: 1;
    min-height: 200px;
  }
}

// 小屏幕适配
@media (max-width: 480px) {
  .module-box {
    margin: 5px;
    gap: 10px;
  }
  
  .chart-container {
    min-height: 150px;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

